package com.rd.teacher.jichao.day01;

// 三角形
public class Triangle extends Shape {

    private double a;
    private double b;
    private double c;

//    public Triangle(double a,double b,double c){
//        this.a = a;
//        this.b = b;
//        this.c = c;
//    }

    public Triangle(double a, double b, double c) {
        this.a = a;
        this.b = b;
        this.c = c;
    }

    @Override
    public double callPerimeter() {
        return a + b + c;
    }
}
